package cn.bdqn.service;

import org.apache.ibatis.annotations.Param;

import cn.bdqn.entity.Users;
import cn.bdqn.util.Page;

public interface UsersService {
	Integer queryUsersCount();
	Users queryLogin(Users users);
	Users queryUserName(@Param("username")String username);
	Users queryUserEmail(@Param("email")String email);
	Users queryUserByuserid(@Param("userid")Integer userid);
	Integer updateUsers(Users users);
	void queryUsers(String username,Integer floorid,
			Integer layerid,
			Integer roomid,Page<Users> page);
	Integer saveusers(Users users);
	Integer querypersonnum(@Param("floorid")Integer floorid,@Param("layerid")Integer layerid,@Param("roomid")Integer roomid);
	//移出宿舍
	void deleteUsers(@Param("userid")Integer userid);
}
